var zcWin = {
  JumpKey: "zcsoft-vue-resource-redirectkey",
  LogPage: "http://127.0.0.1:8087/#/Login",
  RegPage: "",
  doLogin: function() {
    let me = this;
    localStorage.setItem(me.JumpKey, window.location.href);
    window.location.href = me.LogPage;
  },
  doDirect: function() {
    let me = this;
    var redirectUrl = localStorage.getItem(me.JumpKey);
    if (redirectUrl){
      localStorage.removeItem(me.JumpKey);
      window.location.href = redirectUrl;
       return true;
    }
    return false;
  }
}

export default zcWin;
